package com.qf.huigou.Service.impl;

import com.qf.huigou.Service.UserService;
import com.qf.huigou.dao.UserDao;
import com.qf.huigou.entity.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserDao userDao;

    @Override
    public User login(String phonenumber, String password) {
        return userDao.login(phonenumber,password);
    }

    @Override
    public int regist(User user) {
        return userDao.regist(user);
    }

    @Override
    public User selectByNumber(String phonenumber) {
        return userDao.selectByNumber(phonenumber);
    }
}
